package com.avecsys.quotemanager.pojos;

import java.util.Date;

/**
 * 
 * @author Jeevan Babu
 * 
 */
public abstract class BasePojo {

	private String status;

	private Date createdDttm;

	private Date modifiedDttm;

	private Long createdUserId;

	private Long modifiedUserId;

	private Long version;

	/**
	 * @return the createdDttm
	 */
	public Date getCreatedDttm() {
		return createdDttm;
	}

	/**
	 * @return the createdUserId
	 */
	public Long getCreatedUserId() {
		return createdUserId;
	}

	/**
	 * @return the modifiedDttm
	 */
	public Date getModifiedDttm() {
		return modifiedDttm;
	}

	/**
	 * @return the modifiedUserId
	 */
	public Long getModifiedUserId() {
		return modifiedUserId;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @return the version
	 */
	public Long getVersion() {
		return version;
	}

	/**
	 * Method to check whether entity is already persisted or new
	 * 
	 * @return boolean
	 */
	public abstract boolean isPersisted();

	/**
	 * @param createdDttm
	 *            the createdDttm to set
	 */
	public void setCreatedDttm(Date createdDttm) {
		this.createdDttm = createdDttm;
	}

	/**
	 * @param createdUserId
	 *            the createdUserId to set
	 */
	public void setCreatedUserId(Long createdUserId) {
		this.createdUserId = createdUserId;
	}

	/**
	 * @param modifiedDttm
	 *            the modifiedDttm to set
	 */
	public void setModifiedDttm(Date modifiedDttm) {
		this.modifiedDttm = modifiedDttm;
	}

	/**
	 * @param modifiedUserId
	 *            the modifiedUserId to set
	 */
	public void setModifiedUserId(Long modifiedUserId) {
		this.modifiedUserId = modifiedUserId;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @param version
	 *            the version to set
	 */
	public void setVersion(Long version) {
		this.version = version;
	}
}
